package cn.jiyun.controller;

import cn.jiyun.client.UserFeign;
import cn.jiyun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {

    @Autowired
    private UserFeign userFeign;
    
    @RequestMapping(value="/consumer/getUserById")
    public User getUserById(Integer id){
        return userFeign.getUserById(id);
    }
}